{include file="inc/header_index_new.html"}

<link href="css/common.css" rel="stylesheet"/>
<link href="css/shop_xx.css" rel="stylesheet"/>

<section class="banner">

<img src="{$item_data.icon}" style="height:8.5rem;margin:0 auto;display:block;"/>

</section>
<section class="spxx">
	<p>{$item_data.name}</p>
	<span>￥{$item_data.current_price}</span>
	<ul>
		<li><img src="" alt="">破损包退</li>
		<li><img src="" alt="">正品包装</li>
		<li><img src="" alt="">赠运费险</li>
		<li><img src="" alt="">不支持7天退换</li>
	</ul>
</section>
<nav>
	<a class="blue" href="">商品介绍</a>
	<a href="">产品参数</a>
	<a href="">包装售后</a>
</nav>
<div class="about re" style="    overflow: visible;"><span>商品介绍</span></div>

<div style="margin-top: .5rem;background: #fff;">
	<ul style="    margin-left: .3rem;">
		<li style="list-style: none;padding-left: .3rem;line-height: 1.6rem;">
		<a style="display: block;font-size: .55rem;color: #505050;" href="index.php?ctl=deal&amp;act=more&amp;data_id=185&amp;show_prog=1">图文详情
			<span style="float: right;font-size: 12px;color: #9c9c9c;padding-right: .4rem;">建议在wifi下查看</span>
		</a>
		</li>
		<div class="info-border"></div>
	</ul>
</div>

<footer class="buy"><a href="javascript:go_cart()">立即购买</a></footer>
<input type="hidden" id="data_id" value="{$item_data.id}"/>

<script src="js/jquery-1.6.2.min.js"></script>
<script>
/*加入购车事件*/
function go_cart(){
    var data_id=$("#data_id").val();//商品id
	$.ajax({
		url: 'index.php?ctl=ajax&act=add_cart',
		type: 'POST',
		data: 'data_id=' + data_id + '&buy_num=1' + '&rnum=' + Math.random(),
		dataType: "json",
		success: function (data) {
			
			if(data.status=="1"){
				window.location.href='index.php?ctl=cart';
			}else{
				alert(data.info);
			}
		},
		error: function () {
			alert("系统错误，请联系管理员");
		}
	});
}
</script>
